package com.shenzhen.horselive.api;


import com.shenzhen.horselive.api.response.ApiResponse;
import com.shenzhen.horselive.beans.AddAppBean;
import com.shenzhen.horselive.beans.AddrListBean;
import com.shenzhen.horselive.beans.AllCityLordBean;
import com.shenzhen.horselive.beans.ApplyCardBean;
import com.shenzhen.horselive.beans.ApplyCityHistoryBean;
import com.shenzhen.horselive.beans.ApplyHistory;
import com.shenzhen.horselive.beans.AuctionDetailsHeadBean;
import com.shenzhen.horselive.beans.AuctionDetailsRecordList;
import com.shenzhen.horselive.beans.AuctionHallBean;
import com.shenzhen.horselive.beans.CashOutRulerBean;
import com.shenzhen.horselive.beans.CityAmountBean;
import com.shenzhen.horselive.beans.CityListBean;
import com.shenzhen.horselive.beans.CityMasterBaseBean;
import com.shenzhen.horselive.beans.CommResponseBean;
import com.shenzhen.horselive.beans.CommResponseDataBean;
import com.shenzhen.horselive.beans.DirectPushBean;
import com.shenzhen.horselive.beans.ExptimeBean;
import com.shenzhen.horselive.beans.FabuGuanBoBean;
import com.shenzhen.horselive.beans.FenZhiDuiBean;
import com.shenzhen.horselive.beans.HandOutBean;
import com.shenzhen.horselive.beans.HaveReceviedRed;
import com.shenzhen.horselive.beans.HongBaoBean;
import com.shenzhen.horselive.beans.HongBaoDetailsBean;
import com.shenzhen.horselive.beans.HongBaoRangeBean;
import com.shenzhen.horselive.beans.IsBindBean;
import com.shenzhen.horselive.beans.JoinAuctionBean;
import com.shenzhen.horselive.beans.KeFuBeans;
import com.shenzhen.horselive.beans.LimitRange;
import com.shenzhen.horselive.beans.LockCityBean;
import com.shenzhen.horselive.beans.MyAppBean;
import com.shenzhen.horselive.beans.MyCityBean;
import com.shenzhen.horselive.beans.MyCityDetailsBean;
import com.shenzhen.horselive.beans.MyTeamBean;
import com.shenzhen.horselive.beans.NewsBean;
import com.shenzhen.horselive.beans.NoticeBean;
import com.shenzhen.horselive.beans.OpenCardCityDateBean;
import com.shenzhen.horselive.beans.OpenCardDetailsBean;
import com.shenzhen.horselive.beans.OpenCardResultBean;
import com.shenzhen.horselive.beans.OpenRedBean;
import com.shenzhen.horselive.beans.PayResultBean;
import com.shenzhen.horselive.beans.PayWayBean;
import com.shenzhen.horselive.beans.PhoneRechargeBean;
import com.shenzhen.horselive.beans.PhoneRechargeWXBean;
import com.shenzhen.horselive.beans.ProfitRankingBean;
import com.shenzhen.horselive.beans.RechargeBean;
import com.shenzhen.horselive.beans.RedCommentsBean;
import com.shenzhen.horselive.beans.RedDetailsAboutBean;
import com.shenzhen.horselive.beans.RedDetailsBean;
import com.shenzhen.horselive.beans.RedPageListBean;
import com.shenzhen.horselive.beans.SendRedRulersBean;
import com.shenzhen.horselive.beans.SumBean;
import com.shenzhen.horselive.beans.TeQuanBean;
import com.shenzhen.horselive.beans.TypeDetailsBean;
import com.shenzhen.horselive.beans.UpdateBean;
import com.shenzhen.horselive.beans.UserAcountBean;
import com.shenzhen.horselive.beans.ZouShiBean;
import com.shenzhen.horselive.common.Events;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiService {
    //版本更新
    @POST("/v1/usercenter/query/versioncontrol")
    Observable<UpdateBean> update(@Query("systemType")String systemType);

    //用户是否已经绑定手机
    @POST(ApiConstants.USER_IS_REGISTER)
    Observable<IsBindBean> isBindPhone(@Query("code")String code);

    //发送验证码
    @POST(ApiConstants.SEND_CODE)
    Observable<CommResponseBean> sendCode(@Query("phone")String phone, @Query("brandId")String brandId);

    //注册用户
    @POST("/v1/usercenter/app/register/user")
    Observable<IsBindBean> register(@Query("accessToken")String accessToken,
                                          @Query("phone")String phone,
                                          @Query("smsCode")String smsCode,
                                          @Query("openid")String openid,
                                          @Query("preUserPhone")String preUserPhone
                                          );
    //我的界面
    //获取用户信息
   @POST("/v1/usercenter/app/get/user/info")
   Observable<IsBindBean> getUserInfo(@Query("token")String token);

    //设置支付宝账号
    @POST("/v1/usercenter/app/update/ali")
    Observable<CommResponseBean> setAliPay(@Query("token")String token,
                                     @Query("aliName")String aliName,
                                     @Query("aliId")String aliId
                                     );


    //设置支付宝账号
    @POST("/v1/usercenter/app/update/paypasswrd")
    Observable<CommResponseBean> setPassWord(@Query("token")String token,
                                           @Query("smsCode")String smsCode,
                                           @Query("payPassword")String payPassword
    );



    //设置银行卡
    @POST("/v1/usercenter/app/set/bank/card")
    Observable<CommResponseBean> setBank(@Query("token")String token,
                                             @Query("cardNo")String cardNo,
                                             @Query("bankPhone")String bankPhone
    );


    @POST("/v1/usercenter/app/auth/realname")
    Observable<CommResponseBean> realName(@Body MultipartBody multipartBody);

    @POST("/v1/usercenter/app/update/headimg/nickname")
    Observable<CommResponseBean> saveHeadAndName(@Body MultipartBody multipartBody);

    //获取客服微信
    @POST("/v1/usercenter/app/query/config/servicewx")
    Observable<KeFuBeans> getWeChat(@Query("token")String token);
    //获取地址列表
    //获取客服微信
    @POST("/v1/usercenter/app/find/user/address/list")
    Observable<AddrListBean> getAddressList(@Query("token")String token);

    //红包相关
    //红包首页红包列表
    @POST("/v1/packets/app/query/homepage/list/redenvelopes")
    Observable<HongBaoBean> getHongBaoList(@Query("token")String token,
                                           @Query("lng")String lng,
                                           @Query("lat")String lat,
                                           @Query("cityCode")String cityCode,
                                           @Query("areaCode")String areaCode
    );


    //获取领取红包的范围
    @POST("/v1/packets/app/query/user/receive/range")
    Observable<HongBaoRangeBean> getHongBaoRange(@Query("token")String token
    );

    //获取发布领取红包的范围
    @POST("/v1/packets/app/query/list/redenvelopesrange")
    Observable<LimitRange> getLimitRange(@Query("token")String token
    );

    //发布红包
    @POST("/v1/packets/app/handout/broadcast/redenvelopes")
    Observable<FabuGuanBoBean> fabuGuangboRed(@Body MultipartBody multipartBody);

    //添加应用
    @POST("/v1/packets/app/add/application")
    Observable<AddAppBean> addApp(@Body MultipartBody multipartBody);

    //修改应用
    @POST("/v1/packets/app/update/application")
    Observable<AddAppBean> updateApp(@Body MultipartBody multipartBody);

    //删除应用
    @POST("/v1/packets/app/delete/application")
    Observable<CommResponseBean> delApp(@Query("token")String token,
                                        @Query("id")String id
                                        );


    //我的应用列表
    @POST("/v1/packets/app/query/list/application")
    Observable<MyAppBean> myAppList(@Query("token")String token);

    //发布应用红包
    @POST("/v1/packets/app/handout/application/redenvelopes")
    Observable<FabuGuanBoBean> appRedPackage(@Query("token")String token,
                                        @Query("applicationId")String applicationId,
                                        @Query("description")String description,
                                        @Query("channelId")String channelId,
                                        @Query("totalAmount")String totalAmount,
                                        @Query("quantity")String quantity,
                                        @Query("receiveRange")String receiveRange,
                                        @Query("lng")String lng,
                                        @Query("lat")String lat,
                                        @Query("provinceName")String provinceName,
                                        @Query("provinceCode")String provinceCode

                                        );


    //地址相关
    //添加地址
    @POST("/v1/usercenter/app/insert/user/address")
    Observable<CommResponseBean> addAddr(@Query("token")String token,
                                             @Query("contactsName")String contactsName,
                                             @Query("contactsPhone")String contactsPhone,
                                             @Query("province")String province,
                                             @Query("city")String city,
                                             @Query("county")String county,
                                             @Query("address")String address,
                                             @Query("def")String def);

    //修改地址
    @POST("/v1/usercenter/app/update/user/address")
    Observable<CommResponseBean> updateAddr(@Query("token")String token,
                                            @Query("id")String id,
                                         @Query("contactsName")String contactsName,
                                         @Query("contactsPhone")String contactsPhone,
                                         @Query("province")String province,
                                         @Query("city")String city,
                                         @Query("county")String county,
                                         @Query("address")String address,
                                         @Query("def")String def);


    //删除地址
    @POST("/v1/usercenter/app/delete/user/address")
    Observable<CommResponseBean> delAddr(@Query("token")String token,
                                            @Query("id")String id);

    //获取下载链接
    @POST("/v1/usercenter/app/query/config/appdownloadurl")
    Observable<CommResponseDataBean> getShareurl(@Query("token")String token);

   //红包明细相关
    //收到的红包列表
   @POST("/v1/packets/app/query/list/receive/redenvelopes")
   Observable<RedPageListBean> getRedPackageList(@Query("token")String token,
                                                  @Query("page")String page
                                                  );

    //发出去的红包列表
    @POST("/v1/packets/app/query/list/handout/redenvelopes")
    Observable<RedPageListBean> sendRedPackageList(@Query("token")String token,
                                                   @Query("page")String page
    );

    //收到的红包统计
    @POST("/v1/packets/app/stats/receive/redenvelopes")
    Observable<HaveReceviedRed> haveReceivedRed(@Query("token")String token
    );

    //发出的红包统计
    @POST("/v1/packets/app/stats/handout/redenvelopes")
    Observable<HandOutBean> handOutRed(@Query("token")String token
    );

    //红包详情领取详情概要
    @POST("/v1/packets/app/query/receive/detail/redenvelopes")
    Observable<RedDetailsAboutBean> redDetailsAbout(@Query("token")String token,
                                                    @Query("redEnvelopesId")String redEnvelopesId
    );

    //红包详情领取详情人列表
    @POST("/v1/packets/app/query/receive/list/redenvelopes")
    Observable<RedDetailsBean> redDetailsListPeople(@Query("token")String token,
                                               @Query("redEnvelopesId")String redEnvelopesId,
                                                    @Query("page")String page
    );


    //红包详情页面评论列表
    @POST("/v1/packets/app/query/list/comment/redenvelopes")
    Observable<RedCommentsBean> redCommentsList(@Query("token")String token,
                                                     @Query("redEnvelopesId")String redEnvelopesId
    );

 //红包详情页面具体详细信息
 @POST("/v1/packets/app/query/detail/redenvelopes")
 Observable<HongBaoDetailsBean> redDetails(@Query("token")String token,
                                           @Query("redEnvelopesId")String redEnvelopesId
 );





 //评论红包
 @POST("/v1/packets/app/comment/redenvelopes")
 Observable<CommResponseBean> comment(@Query("token")String token,
                                           @Query("redEnvelopesId")String redEnvelopesId,
                                      @Query("comment")String comment
 );

 //赞红包
 @POST("/v1/packets/app/zan/redenvelopes")
 Observable<CommResponseBean> zan(@Query("token")String token,
                                  @Query("redEnvelopesId")String redEnvelopesId
 );

 //赞红包
 @POST("/v1/packets/app/cancelzan/redenvelopes")
 Observable<CommResponseBean> cancelZan(@Query("token")String token,
                                  @Query("redEnvelopesId")String redEnvelopesId
 );


 //开红包
 @POST("/v1/packets/app/open/redenvelopes")
 Observable<OpenRedBean> openRed(@Query("token")String token,
                                 @Query("redEnvelopesId")String redEnvelopesId,
                                 @Query("redEnvelopesType")String redEnvelopesType,
                                 @Query("provinceCode")String provinceCode,
                                 @Query("cityCode")String cityCode,
                                 @Query("areaCode")String areaCode
 );

 //用户消息
 @POST("/v1/usercenter/app/query/list/news")
 Observable<NoticeBean> noticesList(@Query("token")String token
 );

 //竞拍大厅列表
 @POST("/v1/packets/app/find/city/master/auction/list")
 Observable<AuctionHallBean> auctionHall(@Query("token")String token
 );


 //城主基本信息
 @POST("/v1/packets/app/find/city/master/basics")
 Observable<CityMasterBaseBean> findCityMasterBase(@Query("token")String token,
                                                   @Query("areaCode")String areaCode
 );
 //城市收益排行
 @POST("/v1/packets/app/find/city/master/profit/ranking")
 Observable<ProfitRankingBean> profitRankingList(@Query("token")String token
 );

 //城市价格
 @POST("/v1/packets/app/find/city/master/price/ranking")
 Observable<ProfitRankingBean> priceRankingList(@Query("token")String token
 );


 //获取所有城主的列表/v1/packets/app/find/All/city/master
 @POST("/v1/packets/app/find/All/city/master")
 Observable<AllCityLordBean> allMasterList(@Query("token")String token,
                                           @Query("areaLevel")String areaLevel

 );

 //获取所有城主的列表包括市和区/v1/packets/app/find/All/city/master
 @POST("/v1/packets/app/find/All/city/master")
 Observable<AllCityLordBean> allMasterListAll(@Query("token")String token
 );


 //首页新闻列表
 @POST("/v1/usercenter/app/query/news/information")
 Observable<NewsBean> news(@Query("token")String token
 );

 //预约开卡界面
 @POST("/v1/usercenter/app/query/opencard/scheme")
 Observable<ApplyCardBean> applyCardList(@Query("token")String token
 );

 //话费充值
 //话费套餐
 @POST("/v1/usercenter/app/query/phone/recharge/cardnum")
 Observable<RechargeBean> rechargeList(@Query("token")String token
 );

 //充值接口
 @POST("/v1/usercenter/app/create/phone/recharge/order")
 Observable<PhoneRechargeBean> recharge(@Query("token")String token,
                                        @Query("cardnum")String cardnum,
                                        @Query("rechargePhone")String rechargePhone,
                                        @Query("channelTag")String channelId,
                                        @Query("payPassword")String payPassword,
                                        @Query("areaCode")String areaCode,
                                        @Query("cityId")String cityId

 );

 //微信充值话费
 //充值接口
 @POST("/v1/usercenter/app/create/phone/recharge/order")
 Observable<PhoneRechargeWXBean> rechargeWx(@Query("token")String token,
                                            @Query("cardnum")String cardnum,
                                            @Query("rechargePhone")String rechargePhone,
                                            @Query("channelTag")String channelId,
                                            @Query("payPassword")String payPassword,
                                            @Query("areaCode")String areaCode,
                                            @Query("cityId")String cityId

 );

 //我的主城相关
 @POST("/v1/packets/app/find/city/master/my/city/list")
 Observable<MyCityBean> mycitylist(@Query("token")String token
 );
 //我参与的竞拍
 @POST("/v1/packets/app/query/my/auction/city")
 Observable<MyCityBean> myactionlist(@Query("token")String token
 );

 //申请预约开卡
 @POST("/v1/usercenter/app/save/opencard/order")
 Observable<CommResponseBean> applyOpenCard(@Query("token")String token,
                                      @Query("brandId")String brandId,
                                      @Query("userId")String userId,
                                      @Query("openPhone")String openPhone,
                                      @Query("openName")String openName,
                                      @Query("openProvince")String openProvince,
                                      @Query("openCity")String openCity,
                                      @Query("openArea")String openArea,
                                      @Query("openCityCode")String openCityCode,//区域的code,
                                      @Query("schemeId")String schemeId,
                                      @Query("schemeName")String schemeName,
                                       @Query("waybillUserName")String waybillUserName,
                                       @Query("waybillUserPhone")String waybillUserPhone,
                                       @Query("waybillArea")String waybillArea,
                                       @Query("waybillAddress")String waybillAddress,
                                       @Query("areaCode")String areaCode,
                                        @Query("cityId")String cityId

 );


 //申请预约开卡需要支付保证金
 @POST("/v1/usercenter/app/save/opencard/order")
 Observable<OpenCardResultBean> applyOpenCardWithPay(@Query("token")String token,
                                                     @Query("brandId")String brandId,
                                                     @Query("userId")String userId,
                                                     @Query("openPhone")String openPhone,
                                                     @Query("openName")String openName,
                                                     @Query("openProvince")String openProvince,
                                                     @Query("openCity")String openCity,
                                                     @Query("openArea")String openArea,
                                                     @Query("openCityCode")String openCityCode,//区域的code,
                                                     @Query("schemeId")String schemeId,
                                                     @Query("schemeName")String schemeName,
                                                     @Query("waybillUserName")String waybillUserName,
                                                     @Query("waybillUserPhone")String waybillUserPhone,
                                                     @Query("waybillArea")String waybillArea,
                                                     @Query("waybillAddress")String waybillAddress,
                                                     @Query("areaCode")String areaCode,
                                                     @Query("cityId")String cityId,
                                                     @Query("channelId")String channelId

 );




 //预约开卡历史
 @POST("/v1/usercenter/app/query/opencard/order")
 Observable<ApplyHistory> applyHistory(@Query("token")String token
 );


 //合伙人申请
 @POST("/v1/usercenter/app/save/partner/application/record")
 Observable<CommResponseBean> applyPartner(@Query("token")String token,
                                       @Query("province")String province,
                                       @Query("city")String city,
                                       @Query("district")String district,
                                       @Query("applicationPhone")String applicationPhone,
                                       @Query("applicationName")String applicationName,
                                       @Query("cityId")String cityId,
                                       @Query("amount")String amount
 );

 //合伙人申请
 //查看城市的价格
 @POST("/v1/packets/app/find/city/master/auction/city/json")
 Observable<CityAmountBean> cityAmount(@Query("token")String token
 );

 //合伙人申请历史
 @POST("/v1/usercenter/app/query/partner/application/record")
 Observable<ApplyCityHistoryBean> applyCityHistory(@Query("token")String token
 );

 //总资产
 @POST("/v1/accountcenter/app/query/all/user/account")
 Observable<CommResponseDataBean> account(@Query("token")String token
 );


 //不同账户类型的 余额帐户类型: 0:人民币帐户 ,1:蜂值帐户 ,2:红包股帐户 ,3:金卡帐户
 @POST("/v1/accountcenter/app/query/user/account")
 Observable<UserAcountBean> accountTypes(@Query("token")String token,
                                         @Query("accountType")String accountType
 );

 //不同账户类型的增值
 @POST("/v1/accountcenter/app/query/user/account/history/sum")
 Observable<SumBean> accountTypesSum(@Query("token")String token,
                                     @Query("accountType")String accountType,
                                     @Query("direction")String direction,
                                     @Query("startDate")String startDate,
                                     @Query("endDate")String endDate
 );

 //峰值红包股兑换
 @POST("/v1/accountcenter/app/exchange/user/account")
 Observable<CommResponseBean> fenDuiRedGu(@Query("token")String token,
                                     @Query("sourceAccountType")String sourceAccountType,
                                     @Query("targetAccountType")String targetAccountType,
                                     @Query("targetChangeNumber")String targetChangeNumber

 );


 //对应账户的明细
 @POST("/v1/accountcenter/app/query/user/account/history")
 Observable<TypeDetailsBean> typeDetails(@Query("token")String token,
                                         @Query("accountType")String accountType,
                                         @Query("direction")String direction

 );

 //兑换比例，都是兑换人民币的比例 蜂值兑换比例:1,红包股兑换比例:2
 @POST("/v1/accountcenter/app/query/exchange/ratio")
 Observable<CommResponseDataBean> ratio(@Query("token")String token,
                                         @Query("targetAccountType")String targetAccountType

 );


 //峰值近7天走势
 @POST("/v1/accountcenter/app/query/account/ratio/history")
 Observable<ZouShiBean> zoushi(@Query("token")String token,
                              @Query("accountType")String accountType

 );

 //峰值昨天和今天的价格
 @POST("/v1/accountcenter/app/query/account/ratio/fengzhi")
 Observable<FenZhiDuiBean> fenzhidui(@Query("token")String token

 );

 //钱包提现
 @POST("/v1/accountcenter/app/withdraw/user/account")
 Observable<CommResponseBean> cashOut(@Query("token")String token,
                                      @Query("withdrawAmount")String withdrawAmount,
                                      @Query("withdrawType")String withdrawType,
                                      @Query("payPassword")String payPassword
 );



 //获取发送红包的个数和限制
 @POST("/v1/packets/app/query/redenvelopes/grandastrict")
 Observable<SendRedRulersBean> sendRedLimitRulers(@Query("token")String token

 );


 //获取红包的支付方式
 @POST("/v1/ordercenter/app/packets/query/list/paychannel")
 Observable<PayWayBean> getPayWays(@Query("token")String token
 );

//普通的获取支付渠道的支付方式
@POST("/v1/ordercenter/app/packets/query/list/paychannel")
Observable<PayWayBean> getPayWaysNormal(@Query("token")String token
);

//支付结果查询
@POST("/v1/upstream/app/query/pay/order/status")
Observable<PayResultBean> getPayResult(@Query("token")String token,
                                       @Query("orderCode")String orderCode,
                                       @Query("channelTag")String channelTag
);


//举报红包
@POST("/v1/packets/app/report/redenvelopes")
Observable<CommResponseBean> juBao(@Query("token")String token,
                                       @Query("redEnvelopesId")String redEnvelopesId,
                                       @Query("reportOption")String reportOption
);

//查询看广告的时间
 @POST("/v1/packets/app/query/config/advertisetime")
 Observable<CommResponseDataBean> hongbaoTime(@Query("token")String token,
                                    @Query("redEnvelopesType")String redEnvelopesType
 );


 //竞拍详情头部信息
 @POST("/v1/packets/app/find/hall/citymaster/detail")
 Observable<AuctionDetailsHeadBean> auctionHeadDetails(@Query("token")String token,
                                                       @Query("areaCode")String areaCode
 );

 //竞价列表
 @POST("/v1/packets/app/find/city/master/auction/record/list")
 Observable<AuctionDetailsRecordList> auctionDetailsRecordList(@Query("token")String token,
                                                               @Query("auctionSerialNum")String auctionSerialNum
 );


 //参与竞拍
 @POST("/v1/packets/app/join/auction")
 Observable<CommResponseDataBean> participateAuction(@Query("token")String token,
                                                     @Query("payPassword")String payPassword

 );

 //用户意见反馈
 @POST("/v1/usercenter/app/feedback")
 Observable<CommResponseBean> feedback(@Body MultipartBody multipartBody);


 //支付合伙人
 @POST("/v1/usercenter/app/payment/partner/application/record")
 Observable<CommResponseBean> payCityPartner(@Query("token")String token,
                                             @Query("orderCode")String orderCode,
                                             @Query("payPassword")String payPassword

 );
 //拍卖合伙人
 @POST("/v1/usercenter/app/sell/partner/application/record")
 Observable<CommResponseBean> saleCityPartner(@Query("token")String token,
                                             @Query("orderCode")String orderCode,
                                              @Query("payPassword")String payPassword

 );

 //申请合伙人的时候的选择的城市列表
 @POST("/v1/packets/app/find/city/master/auction/city/json")
 Observable<CityListBean> cityAreaList(@Query("token")String token
 );


 //城主特权
 @POST("/v1/packets/app/query/citymaster/power")
 Observable<TeQuanBean> tequan(@Query("token")String token
 );



 //判断用户的实名认证状态
 @POST("/v1/usercenter/app/query/realname/status")
 Observable<CommResponseDataBean> realNameStatus(@Query("token")String token
 );

 //提现的规则
 @POST("/v1/accountcenter/app/query/withdraw/rule")
 Observable<CashOutRulerBean> cashOutRulers(@Query("token")String token
 );


 //参与竞拍页面数据
 @POST("/v1/packets/app/city/join/auction")
 Observable<JoinAuctionBean> joinAuction(@Query("token")String token,
                                         @Query("areaCode")String areaCode
 );


 //参与竞拍
 @POST("/v1/packets/app/city/join/auction/pay")
 Observable<CommResponseBean> joinAuctionSure(@Query("token")String token,
                                         @Query("auctionSerialNum")String auctionSerialNum,
                                         @Query("bidPrice")String bidPrice,
                                         @Query("payPassword")String payPassword
 );



 //获取我的主城的详情页面
//       /v1/packets/app/find/my/citymaster/detail
 @POST("/v1/packets/app/find/my/citymaster/detail")
 Observable<MyCityDetailsBean> myCityDetails(@Query("token")String token,
                                             @Query("areaCode")String areaCode

 );

 //获取城市的有效时间和上浮倍率
 @POST("/v1/packets/app/find/city/exptime")
 Observable<ExptimeBean> exptime(@Query("token")String token,
                                 @Query("areaCode")String areaCode

 );

 //继续锁城的字段
 @POST("/v1/packets/app/lock/city/master")
 Observable<LockCityBean> lockCity(@Query("token")String token,
                                   @Query("cityMasterId")String cityMasterId

 );


 //锁城
 @POST("/v1/packets/app/lock/city/master/pay")
 Observable<CommResponseBean> lock(@Query("token")String token,
                                   @Query("cityMasterId")String cityMasterId,
                                   @Query("lockPrice")String lockPrice,
                                   @Query("payPassword")String payPassword
 );


 //开卡城市列表
 @POST("/v1/usercenter/query/opencard/city/list")
 Observable<OpenCardCityDateBean> openCardcityAreaList(@Query("token")String token
 );


 //申请开卡详情页面
 @POST("/v1/usercenter/query/opencard/detail")
 Observable<OpenCardDetailsBean> openCardDetails(@Query("token")String token,
                                                 @Query("orderCode")String orderCode
 );


 //申请开卡详情页面
 @POST("/v1/usercenter/cancel/opencard")
 Observable<CommResponseBean> cancelApply(@Query("token")String token,
                                                 @Query("orderCode")String orderCode
 );


 //我的团队
 @POST("/v1/usercenter/app/get/user/team")
 Observable<MyTeamBean> myteam(@Query("token")String token

 );


 //我的团队
 @POST("/v1/usercenter/app/get/user/team/detail")
 Observable<DirectPushBean> directPushDetails(@Query("token")String token,
                                              @Query("grade")String grade,
                                              @Query("size")String size,
                                              @Query("page")String page

 );



}


